package Chat_program_Rasmus;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import java.awt.FlowLayout;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.JPasswordField;

public class user_info_GUI extends JFrame {

	private JPanel contentPane;
	private JTextField textfield_username;
	private JLabel label_password_new;
	private JTextField textfield_firstname;
	private JTextField textfield_lastname;
	private JTextField textfield_email;
	private JTextField textfield_country;
	private JTextField textfield_zip;
	private JTextField textfield_city;
	private JTextField textfield_address;
	private JPasswordField password_new;
	private JPasswordField password_confirm;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					user_info_GUI frame = new user_info_GUI();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public user_info_GUI() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 260, 410);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel label_username = new JLabel("Username");
		label_username.setBounds(10, 10, 92, 20);
		contentPane.add(label_username);
		
		label_password_new = new JLabel("Password");
		label_password_new.setBounds(10, 40, 92, 20);
		contentPane.add(label_password_new);
		
		JLabel lblConfirmPass = new JLabel("Confirm Pass");
		lblConfirmPass.setBounds(10, 70, 92, 20);
		contentPane.add(lblConfirmPass);
		
		JLabel label_firstname = new JLabel("First Name");
		label_firstname.setBounds(10, 100, 92, 20);
		contentPane.add(label_firstname);
		
		JLabel label_lastname = new JLabel("Last Name");
		label_lastname.setBounds(10, 130, 92, 20);
		contentPane.add(label_lastname);
		
		JLabel label_email = new JLabel("Email");
		label_email.setBounds(10, 160, 92, 20);
		contentPane.add(label_email);
		
		JLabel label_address = new JLabel("Address");
		label_address.setBounds(10, 190, 92, 20);
		contentPane.add(label_address);
		
		JLabel label_zip = new JLabel("Zipcode");
		label_zip.setBounds(10, 220, 92, 20);
		contentPane.add(label_zip);
		
		JLabel label_city = new JLabel("City");
		label_city.setBounds(10, 250, 92, 20);
		contentPane.add(label_city);
		
		JLabel label_country = new JLabel("Country");
		label_country.setBounds(10, 280, 92, 20);
		contentPane.add(label_country);
		
		textfield_username = new JTextField();
		textfield_username.setBounds(115, 10, 120, 20);
		contentPane.add(textfield_username);
		textfield_username.setColumns(10);
		
		textfield_firstname = new JTextField();
		textfield_firstname.setBounds(115, 100, 120, 20);
		contentPane.add(textfield_firstname);
		textfield_firstname.setColumns(10);
		
		textfield_lastname = new JTextField();
		textfield_lastname.setBounds(115, 130, 120, 20);
		contentPane.add(textfield_lastname);
		textfield_lastname.setColumns(10);
		
		textfield_email = new JTextField();
		textfield_email.setBounds(115, 160, 120, 20);
		contentPane.add(textfield_email);
		textfield_email.setColumns(10);
		
		textfield_country = new JTextField();
		textfield_country.setBounds(115, 280, 120, 20);
		contentPane.add(textfield_country);
		textfield_country.setColumns(10);
		
		textfield_zip = new JTextField();
		textfield_zip.setBounds(115, 220, 120, 20);
		contentPane.add(textfield_zip);
		textfield_zip.setColumns(10);
		
		textfield_city = new JTextField();
		textfield_city.setBounds(115, 250, 120, 20);
		contentPane.add(textfield_city);
		textfield_city.setColumns(10);
		
		textfield_address = new JTextField();
		textfield_address.setBounds(115, 190, 120, 20);
		contentPane.add(textfield_address);
		textfield_address.setColumns(10);
		
		JButton button_login = new JButton("Log In");
		button_login.setBounds(10, 311, 151, 49);
		contentPane.add(button_login);
		
		JButton button_cancel = new JButton("Cancel");
		button_cancel.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
			}
		});
		button_cancel.setBounds(172, 311, 63, 49);
		contentPane.add(button_cancel);
		
		password_new = new JPasswordField();
		password_new.setBounds(115, 40, 120, 20);
		contentPane.add(password_new);
		
		password_confirm = new JPasswordField();
		password_confirm.setBounds(115, 70, 120, 20);
		contentPane.add(password_confirm);
	}
}
